package com.frikinet.lifeguard.util;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class Day
{
	public static final SimpleDateFormat DAY_ID_FORMAT = new SimpleDateFormat("yyyyMMdd");
	
	private String id = "";
	private int date;
	private boolean blank;

	public Day(Calendar calendar)
	{
		this.id = DAY_ID_FORMAT.format(calendar.getTime());
		this.date = calendar.get(Calendar.DATE);
		this.blank = false;
	}

	public Day()
	{
		this.blank = true;
	}

	public int getDate()
	{
		return date;
	}

	public boolean isBlank()
	{
		return blank;
	}

	public String getId()
	{
		return id;
	}
}
